﻿<Window x:Class="LINQPadDriver.ConnectionDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" Height="431" Width="443"
        x:ClassModifier="internal" ResizeMode="NoResize">
  <Grid>
    <Label Content="Display name:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" />
    <TextBox Height="23" Margin="10,36,10,0" Name="DisplayName" VerticalAlignment="Top" x:FieldModifier="private" />
    <Label Content="Assemblies:" HorizontalAlignment="Left" Margin="10,64,0,0" VerticalAlignment="Top" />
    <TextBox Margin="10,90,10,0" Name="Assemblies" AcceptsReturn="True" x:FieldModifier="private" Height="101"
             VerticalAlignment="Top" TextChanged="Assemblies_TextChanged" />
    <Button Content="Ok" Margin="122,0,0,16" IsDefault="True" Click="OkClick" Height="23"
            VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="75" />
    <Button Content="Cancel" Margin="203,0,0,16" IsCancel="True" Height="23" VerticalAlignment="Bottom"
            HorizontalAlignment="Left" Width="75" />
    <Label Content=".config file:" HorizontalAlignment="Left" Margin="10,196,0,0" VerticalAlignment="Top" />
    <TextBox x:Name="ConfigPath" Margin="10,222,10,0" TextWrapping="Wrap" VerticalAlignment="Top"
             TextChanged="ConfigPathChanged" />
    <TextBlock HorizontalAlignment="Left" Margin="381,69,0,0" TextWrapping="Wrap" VerticalAlignment="Top">
      <Hyperlink RequestNavigate="BrowseAssembly" NavigateUri="/">Browse</Hyperlink>
    </TextBlock>
    <TextBlock HorizontalAlignment="Left" Margin="381,201,0,0" TextWrapping="Wrap" VerticalAlignment="Top">
      <Hyperlink RequestNavigate="BrowseConfig" NavigateUri="/">Browse</Hyperlink>
    </TextBlock>
    <GroupBox Header="Create domain from" Margin="10,248.96,10,0" VerticalAlignment="Top">
      <StackPanel Orientation="Vertical">
        <RadioButton x:Name="ConfigFile" Content="config file" HorizontalAlignment="Left" />
        <ComboBox x:Name="DomainNames" IsEnabled="{Binding IsChecked, ElementName=ConfigFile}" />
        <RadioButton x:Name="DomainFactory" HorizontalAlignment="Left" Content="domain factory" />
        <ComboBox x:Name="Factories" IsEnabled="{Binding IsChecked, ElementName=DomainFactory}" />
      </StackPanel>
    </GroupBox>
  </Grid>
</Window>